import request from '@/utils/request'

// 查询路线站点信息列表
export function listStationroute(query) {
  return request({
    url: '/countrybus/stationroute/list',
    method: 'get',
    params: query
  })
}

// 查询路线站点信息详细
export function getStationroute(routeId) {
  return request({
    url: '/countrybus/stationroute/' + routeId,
    method: 'get'
  })
}

// 新增路线站点信息
export function addStationroute(data) {
  return request({
    url: '/countrybus/stationroute',
    method: 'post',
    data: data
  })
}

// 修改路线站点信息
export function updateStationroute(data) {
  return request({
    url: '/countrybus/stationroute',
    method: 'put',
    data: data
  })
}

// 删除路线站点信息
export function delStationroute(routeId) {
  return request({
    url: '/countrybus/stationroute/' + routeId,
    method: 'delete'
  })
}
